package com.example.certificate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.example.certificate.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author hao
 * @since 2022-03-08 11:01:39
 */
@Getter
@Setter
@TableName("data_type")
@ApiModel(value = "DataType对象", description = "")
public class DataType extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @TableField("desc_detail")
    private String descDetail;

    @ApiModelProperty("图片")
    @TableField("image")
    private String image;

    @TableField("type")
    private String type;

    @ApiModelProperty("状态 1、使用 2、禁用")
    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private List<ProductInfo> productInfos;
}
